home *** CD-ROM | disk | FTP | other *** search
/ Apple WWDC 1996 / WWDC96_1996 (CD).toast / Technology Materials / MacApp Release 10 / MacApp Release 10 - HD Ready / Examples / DemoText / TEDocument.r < prev    next >
Encoding:
Text File  |  1996-04-03  |  2.7 KB  |  158 lines  |  [TEXT/MPS ]

  1. /*
  2.     TEDocument.r
  3.     MacApp® Resources for UTEDocument
  4.     Copyright © 1985-96 by Apple Computer, Inc. All rights reserved.
  5. */
  6.  
  7. /* • Auto-Include the requirements for this source */
  8. #ifndef __TYPES_R__
  9. #include "Types.r"
  10. #endif
  11.  
  12. #ifndef __MacAppTypes__
  13. #include "MacAppTypes.r"
  14. #endif
  15.  
  16. #ifndef __ViewTypes__
  17. #include "ViewTypes.r"
  18. #endif
  19.  
  20. #define kFileTooBig        1000                /* The 'File is too large' alert */
  21. #define kContentNotExtracted        1017    /* Can't read all styles alert*/
  22. #define kSnapshotNotExtracted         1018    /* Can't read image format alert*/
  23.  
  24. /* Used when the user attempts to read a file larger than we can handle */
  25.  
  26. resource 'DITL' (kFileTooBig,
  27. #if qNames
  28.     "kFileTooBig",
  29. #endif
  30.     purgeable) {
  31.     {
  32. /* [ 1] */    {55, 288, 75, 348},
  33.                 Button {
  34.                     enabled,
  35.                     "OK"
  36.                 };
  37. /* [ 2] */    {10, 75, 42, 348},
  38.                 StaticText {
  39.                     disabled,
  40.                     "DemoText can’t read the entire file because it is too long."
  41.                 };
  42. /* [ 3] */    {10, 20, 42, 52},
  43.                 Icon {
  44.                     disabled,
  45.                     stopIcon
  46.                 }
  47.     }
  48. };
  49.  
  50. resource 'ALRT' (kFileTooBig, purgeable) {
  51.     {100, 110, 185, 468},
  52.     kFileTooBig,
  53.     {
  54. /* [ 1] */    OK, visible, silent;
  55. /* [ 2] */    OK, visible, silent;
  56. /* [ 3] */    OK, visible, silent;
  57. /* [ 4] */    OK, visible, silent
  58.     },
  59.     alertPositionMainScreen
  60. };
  61.  
  62. #if qPowerTalk
  63.  
  64. resource 'ALRT' (kContentNotExtracted,
  65. #if qNames
  66.     "kContentNotExtracted",
  67. #endif
  68.     purgeable) {
  69.     {100, 110, 185, 468},
  70.     1017,
  71.     {    /* array: 4 elements */
  72.         /* [1] */
  73.         OK, visible, silent;
  74.         /* [2] */
  75.         OK, visible, silent;
  76.         /* [3] */
  77.         OK, visible, silent;
  78.         /* [4] */
  79.         OK, visible, silent
  80.     },
  81.     alertPositionMainScreen
  82. };
  83.  
  84. resource 'DITL' (kContentNotExtracted,
  85. #if qNames
  86.     "kContentNotExtracted",
  87. #endif
  88.     purgeable) {
  89.     {    /* array DITLarray: 3 elements */
  90.         /* [1] */
  91.         {55, 288, 75, 348},
  92.         Button {
  93.             enabled,
  94.             "OK"
  95.         };
  96.         /* [2] */
  97.         {10, 75, 42, 348},
  98.         StaticText {
  99.             disabled,
  100.             "This letter includes Standard Mail Format which DemoText cannot display."
  101.         };
  102.         /* [3] */
  103.         {13, 23, 45, 55},
  104.         Icon {
  105.             disabled,
  106.             noteIcon
  107.         }
  108.     }
  109. };
  110.  
  111.  
  112. resource 'ALRT' (kSnapshotNotExtracted,
  113. #if qNames
  114.     "kSnapshotNotExtracted",
  115. #endif
  116.     purgeable) {
  117.     {100, 110, 185, 468},
  118.     kSnapshotNotExtracted,
  119.     {    /* array: 4 elements */
  120.         /* [1] */
  121.         OK, visible, silent;
  122.         /* [2] */
  123.         OK, visible, silent;
  124.         /* [3] */
  125.         OK, visible, silent;
  126.         /* [4] */
  127.         OK, visible, silent
  128.     },
  129.     alertPositionMainScreen
  130. };
  131.  
  132. resource 'DITL' (kSnapshotNotExtracted,
  133. #if qNames
  134.     "kSnapshotNotExtracted",
  135. #endif
  136.     purgeable) {
  137.     {    /* array DITLarray: 3 elements */
  138.         /* [1] */
  139.         {55, 288, 75, 348},
  140.         Button {
  141.             enabled,
  142.             "OK"
  143.         };
  144.         /* [2] */
  145.         {10, 75, 42, 348},
  146.         StaticText {
  147.             disabled,
  148.             "This letter includes Snapshot mail format which DemoText cannot display."
  149.         };
  150.         /* [3] */
  151.         {13, 23, 45, 55},
  152.         Icon {
  153.             disabled,
  154.             noteIcon
  155.         }
  156.     }
  157. };
  158. #endif //qPowerTalk